package com.hdc.hdc.mainmenu2.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hdc.hdc.mainmenu2.entity.CustomerCompany;
import com.hdc.hdc.mainmenu2.repository.CompanyRepoitory;
import com.hdc.hdc.mainmenu2.service.CompanyServiceI;

/**
 * 用户公司服务类
 * @author GJY
 * 人生格言：学以致用终将成功
 * @version 创建时间：2018年4月8日 下午2:27:39 
 *
 */
@Service
public class CompanyServiceImpl implements CompanyServiceI {
	
	@Autowired
	private CompanyRepoitory companyRepoitory;

	@Override
	public CustomerCompany getCompanyMessageByCode(String code) {

		CustomerCompany company = this.companyRepoitory.findByCompanyCode(code);
		
		return company;
	}

}
